package edu.pku.sei.act.actools.util;

import java.util.ArrayList;
import java.util.List;

public class Task {
	String apkName;
	String taskName;
	String description;
	List<Role> roles;
	
	public Task() {
		apkName = "null";
		taskName= "null";
		description = "null";
		roles = new ArrayList<Role>();
	}
	
	public String getDescriptor() {
		return ACToolsNamingSpace.EnvInfo.TASK_DESCRIPTOR + "," + toString();
	}
	
	public String toString() {
		String taskString = apkName + "," + taskName + "," +description;
		for(int i = 0; i<roles.size(); i++) {
			taskString = taskString + "," + roles.get(i).toString();
		}
		return taskString;
	}
	public Task(String envInfo) {
		
	}
	
	public String getApkName() {
		return apkName;
	}
	
	public void setApkName(String apkName) {
		this.apkName = apkName;
	}
	public String getTaskName() {
		return taskName;
	}

	public void setTaskName(String taskName) {
		this.taskName = taskName;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public List<Role> getRoles() {
		return roles;
	}

	public void setRoles(List<Role> roles) {
		this.roles = roles;
	}
	
}
